#teach {
    width: 100%;
    height: 190px;
    margin: 20px 0;
}

.teacher {
    width: 1000px;
    height: 190px;
}

.teacher .prev,
.teacher .next {
    height: 190px;
    width: 19px;
    overflow: hidden;
    display: block;
    border: 0 none;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    opacity: 1;
}

.teacher .prev {
    background: url(../images/index_124.png) no-repeat left center;
    margin-left: 10px;
}

.teacher .next {
    background: url(../images/index_127.png) no-repeat left center;
    margin-right: 10px;
}

.teacher ul {
    position: relative;
}

.teacher ul li {
    width: 150px;
    height: 190px;
    float: left;
    margin-right: 10px;
    position: relative;
}

.teacher ul li .msg_teacher {
    width: 150px;
    height: 120px;
    background: rgba(0, 0, 0, .5);
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    margin-bottom: -120px;
}

.teacher ul li .msg_teacher h3 {
    font: 13px/35px "微软雅黑";
    color: #fff;
    text-align: center;
    padding-top: 10px;
}

.teacher ul li .msg_teacher p {
    line-height: 18px;
    font-size: 14px;
    color: #b8b8b9;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.teacher ul li a {
    display: block;
}

.teacher ul li a h3 {
    font-weight: normal;
    font-size: 12px;
    line-height: 1;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

.teacher ul li a img {
    width: 150px;
    height: 190px;
}

.slide_teacher {
    width: 1092px;
    overflow: hidden;
    margin-left: 39px;
}


/* 移动端样式 */

@media only screen and (max-width:1200px) {
    .min_teacher {
        width: 100%;
        overflow: hidden;
    }
    .min_teacher ul {
        white-space: nowrap;
        height: 190px;
        overflow: hidden;
    }
    .min_teacher ul li {
        display: inline-block;
    }
    .min_teacher ul img {
        vertical-align: top;
    }
    .teacher_phone input {
        display: none;
    }
    .teacher ul li .msg_teacher {
        background: rgba(165, 0, 0, .6);
        margin-bottom: 0 !important;
        width: 50px;
        height: 30px;
    }
    .teacher ul li .msg_teacher h3 {
        padding-top: 0 !important;
        margin-top: 0 !important;
        height: 30px;
        line-height: 30px;
    }
    .teacher ul li .msg_teacher p {
        display: none;
    }
}